Location: Example bond graph models @ 6fad47e8e5e0 / BG tutorial model solid mechanics 1.cellml

Author:
Soroush <ssaf006@aucklanduni.ac.nz>
Date:
2018-03-28 16:04:58+13:00
Desc:
added the project file
Permanent Source URI:
https://models.cellml.org/workspace/47d/rawfile/6fad47e8e5e097485b35964f4e00dfa6801c05c0/BG tutorial model solid mechanics 1.cellml

<?xml version='1.0'?>
<model name="BG4" xmlns="http://www.cellml.org/cellml/1.1#" xmlns:cellml="http://www.cellml.org/cellml/1.1#">
    <units name="J_per_m">
        <unit units="joule"/>
        <unit exponent="-1" units="metre"/>
    </units>
    <units name="m_per_s">
        <unit units="metre"/>
        <unit exponent="-1" units="second"/>
    </units>
    <units name="m_per_s2">
        <unit units="metre"/>
        <unit exponent="-2" units="second"/>
    </units>
    <units name="m2_per_J">
        <unit exponent="2" units="metre"/>
        <unit exponent="-1" units="joule"/>
    </units>
    <units name="Js_per_m2">
        <unit units="joule"/>
        <unit units="second"/>
        <unit exponent="-2" units="metre"/>
    </units>
    <units name="Js_per_m">
        <unit units="joule"/>
        <unit units="second"/>
        <unit exponent="-1" units="metre"/>
    </units>
    <units name="Js2_per_m2">
        <unit units="joule"/>
        <unit exponent="2" units="second"/>
        <unit exponent="-2" units="metre"/>
    </units>
    <component name="main">
        <variable initial_value="0" name="t" units="second"/>
        <!-- State variables-->
        <variable initial_value="1" name="q1" units="metre"/>
        <variable name="v1" units="m_per_s"/>
        <variable name="u1" units="J_per_m"/>
        <variable name="u2" units="J_per_m"/>
        <variable name="u3" units="J_per_m"/>
        <variable initial_value="0" name="p3" units="Js_per_m"/>
        <!-- Constitutive parameters-->
        <variable initial_value="20" name="C1" units="m2_per_J"/>
        <variable initial_value="0.1" name="R1" units="Js_per_m2"/>
        <variable initial_value="10" name="L1" units="Js2_per_m2"/>
        <!-- Conservation laws-->
        <math xmlns="http://www.w3.org/1998/Math/MathML">
            <apply>
                <eq/>
                <apply>
                    <diff/>
                    <bvar>
                        <ci>t</ci>
                    </bvar>
                    <ci>q1</ci>
                </apply>
                <ci>v1</ci>
            </apply>
            <apply>
                <eq/>
                <apply>
                    <diff/>
                    <bvar>
                        <ci>t</ci>
                    </bvar>
                    <ci>p3</ci>
                </apply>
                <ci>u3</ci>
            </apply>
            <apply>
                <eq/>
                <ci>u1</ci>
                <apply>
                    <minus/>
                    <apply>
                        <minus/>
                        <ci>u2</ci>
                    </apply>
                    <ci>u3</ci>
                </apply>
            </apply>
            <!-- Constitutive relations-->
            <apply>
                <eq/>
                <ci>u1</ci>
                <apply>
                    <divide/>
                    <ci>q1</ci>
                    <ci>C1</ci>
                </apply>
            </apply>
            <apply>
                <eq/>
                <ci>u2</ci>
                <apply>
                    <times/>
                    <ci>v1</ci>
                    <ci>R1</ci>
                </apply>
            </apply>
            <apply>
                <eq/>
                <ci>p3</ci>
                <apply>
                    <times/>
                    <ci>L1</ci>
                    <ci>v1</ci>
                </apply>
            </apply>
        </math>
    </component>
</model>